package cn.magictodo.weblog.admin.service;

import cn.magictodo.weblog.admin.model.vo.article.*;
import cn.magictodo.weblog.common.utils.Response;

/**
 * AdminArticleService文章相关接口
 *
 * @author liu
 * @since 2023-11-24 21:04
 */
public interface AdminArticleService {
    /**
     * 发布文章
     * @param publishArticleReqVO
     * @return
     */
    Response publishArticle(PublishArticleReqVO publishArticleReqVO);

    /**
     * 删除文章
     * @param deleteArticleReqVO
     * @return
     */
    Response deleteArticle(DeleteArticleReqVO deleteArticleReqVO);

    /**
     * 查询文章分页数据
     * @param findArticlePageListReqVO
     * @return
     */
    Response findArticlePageList(FindArticlePageListReqVO findArticlePageListReqVO);

    /**
     * 查询文章详情
     * @param findArticleDetailReqVO
     * @return
     */
    Response findArticleDetail(FindArticleDetailReqVO findArticleDetailReqVO);

    /**
     * 预览文章详情
     * @param previewArticleDetailReqVO
     * @return
     */
    Response previewArticleDetail(PreviewArticleDetailReqVO previewArticleDetailReqVO);


    /**
     * 更新文章
     * @param updateArticleReqVO
     * @return
     */
    Response updateArticle(UpdateArticleReqVO updateArticleReqVO);


    Response updateArticleIsPublish(IsPublishArticleReqVO isPublishArticleReqVO);

    /**
     * 更新文章是否置顶
     * @param updateArticleIsTopReqVO
     * @return
     */
    Response updateArticleIsTop(UpdateArticleIsTopReqVO updateArticleIsTopReqVO);
}
